package camid.test.testobjects;

import java.io.Serializable;

import camid.distribution.lifecycle.LifecycleScope;
import camid.distribution.lifecycle.ManagedObject;


@ManagedObject( lifecycleScope = LifecycleScope.PER_REQUEST )
public class Calculator implements ICalculator, Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = -2179659788952237881L;

	/* (non-Javadoc)
	 * @see camid.test.testobjects.ICalculator#sum(java.lang.Integer, java.lang.Integer)
	 */
	@Override
	public Integer sum(Integer a, Integer b) 
	{
		return a + b;
	}

	/* (non-Javadoc)
	 * @see camid.test.testobjects.ICalculator#sub(java.lang.Integer, java.lang.Integer)
	 */
	@Override
	public Integer sub(Integer a, Integer b) 
	{
		return a - b;
	}

	/* (non-Javadoc)
	 * @see camid.test.testobjects.ICalculator#div(java.lang.Integer, java.lang.Integer)
	 */
	@Override
	public Integer div(Integer a, Integer b) {
		
		return a / b;
	}
	
}
